{include file="header.tpl"}

<!-- start of main body -->
<div id="main">

<div id="main-top"></div>

<div id="banner">
	<span class="headtitle">Search</span>
</div>

<div id="main-middle">
	<!-- start of search form -->
	<form action="search.php" method="get">
		<div class="normaltips">{$tipsmsg}</div>
		<div>
			<span>
				<img alt="52danci logo" src="{$logo}" />
			</span>
			<span>
				<input type="text" name="word" value="{$word}" />
			</span>
			<span>
				<input type="submit" value="Search!" />
			</span>
		</div>
	</form>
	<!-- end of search form -->
	
	<!-- start of search results -->
	<div>
		<div class="subtitle">Search Results</div>
		<hr>
		{foreach key=key item=result from=$results}
		<!-- start of one search result -->
		<div>
			<span><a title="{$key}" href="{$dictsearchlinks[$key]}{$result->getKey()}" target="_blank">{$key}</a></span>
			<!-- one link example: http://www.iciba.com/theword -->
		</div>
		<div>
			<span>Word:</span>
			<span>{$result->getKey()}</span>
		</div>
		<div>
			<span>Phonetic Symbol:</span>
			{if $result->getPS() == ''}
			<span>Not Get It!</span>
			{else}
			<span>[{$result->getPS()}]</span>
			{/if}
		</div>
		<div>
			<span>Pronunciation:</span>
			<span>
				{if ($result->getPron()) != ''}
					<a title="Pronunciation" href="#">
						<object width="160" height="20" id="dewplayer-mini" data="includes/player/dewplayer-mini.swf?mp3={$result->getPron()}" type="application/x-shockwave-flash">
							<param value="transparent" name="wmode">
							<param value="includes/player/dewplayer-mini.swf?mp3={$result->getPron()}" name="movie">
						</object>
					</a>
				{else}
					No Audio File!
				{/if}
			</span>
			<span class="smalltips">{$prontips}</span>
		</div>
		<div>
			<span>Acceptation:</span>
			<span>{$result->getAcceptation()}</span>
		</div>
		<hr>
		<!-- end of one search result -->
		{foreachelse}
		<div>There is no results for this word.</div>
		{/foreach}
	</div>
	<!-- end of search results -->
</div>

<div id="main-bottom"></div>

</div>
<!-- end of main body -->

{include file="footer.tpl"}
